<template>
  <div class="cart">
    <nav-bar class="nav-bar">
      <div slot="center">购物车({{cartLength}})</div>
    </nav-bar>
    <cart-list/>
    <bottom-bar/>
  </div>
</template>

<script>
import NavBar from "components/common/navbar/NavBar";
import cartList from "./childComponents/cartList";
import bottomBar from "./childComponents/bottomBar";
import { mapGetters } from 'vuex'
export default {
  name: "shopcart",
  components:{NavBar,cartList,bottomBar},
  computed:{
    ...mapGetters(['cartLength'])
  },
}
</script>

<style scoped>
.nav-bar{
  background-color: var(--color-tint);
}
.cart {
  height: 100vh;
}
</style>
